package org.example.entity;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @BelongsProject: StudentSystem
 * @BelongsPackage: org.example.entity
 * @Author: StarBonny
 * @CreateTime: 2024-12-22  23:45
 * @Description: 答题记录实体类
 * @Version: 1.0
 */
public class AnswerRecord {
    private int answerRecordId;
    private String answer;
    private int score;
    private int examPaperQuestionIdFk;
    private int answerSheetIdFk;
    private Date submitDate;

    @Override
    public String toString() {
        return "AnswerRecord{" +
                "answerRecordId=" + answerRecordId +
                ", answer='" + answer + '\'' +
                ", score=" + score +
                ", examPaperQuestionIdFk=" + examPaperQuestionIdFk +
                ", answerSheetIdFk=" + answerSheetIdFk +
                ", submitDate=" + submitDate +
                '}';
    }

    public int getAnswerRecordId() {
        return answerRecordId;
    }

    public void setAnswerRecordId(int answerRecordId) {
        this.answerRecordId = answerRecordId;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getExamPaperQuestionIdFk() {
        return examPaperQuestionIdFk;
    }

    public void setExamPaperQuestionIdFk(int examPaperQuestionIdFk) {
        this.examPaperQuestionIdFk = examPaperQuestionIdFk;
    }

    public int getAnswerSheetIdFk() {
        return answerSheetIdFk;
    }

    public void setAnswerSheetIdFk(int answerSheetIdFk) {
        this.answerSheetIdFk = answerSheetIdFk;
    }

    public Date getSubmitDate() {
        return submitDate;
    }

    public void setSubmitDate(Date submitDate) {
        this.submitDate = submitDate;
    }

    public AnswerRecord(int answerRecordId, String answer, int score, int examPaperQuestionIdFk, int answerSheetIdFk, Date submitDate) {
        this.answerRecordId = answerRecordId;
        this.answer = answer;
        this.score = score;
        this.examPaperQuestionIdFk = examPaperQuestionIdFk;
        this.answerSheetIdFk = answerSheetIdFk;
        this.submitDate = submitDate;
    }

    public AnswerRecord() {
    }
}
